#-------------------------------------------------------------------------------
# Name:        Hello Worl
# Purpose:     Tell the world we are here at at last.
#
# Author:      Aaron A. Dennis
# Email:       aaron.a.dennis@gmail.com
# Created:     30/03/2012
# Copyright:   (c) Aaron A. Dennis 2012
# Licence:     <GPL 3.0 google code, JMAS-UAS>
#-------------------------------------------------------------------------------

def main():
    pass

if __name__ == '__main__':
    main()


print "Hello World!"

def my_function(rawbin):
    intbin = int(rawbin, 2)
    print "Binary string detected!"
    return (intbin)

print "Please enter a binay string to convert to integer."
print 'Type my_function(1000100001001) if program returns error!'
binstr = raw_input ()
print my_function(binstr)




